import request from "@/utils/request";

// 查询出库列表
export function listMachineCkM(query) {
  return request({
    url: "/machine/machineCkM/list",
    method: "get",
    params: query,
  });
}

// 查询出库详细
export function getMachineCkM(id) {
  return request({
    url: "/machine/machineCkM/" + id,
    method: "get",
  });
}

// 新增出库
export function addMachineCkM(data) {
  return request({
    url: "/machine/machineCkM",
    method: "post",
    data: data,
  });
}

// 修改出库
export function updateMachineCkM(data) {
  return request({
    url: "/machine/machineCkM",
    method: "put",
    data: data,
  });
}

// 删除出库
export function delMachineCkM(id) {
  return request({
    url: "/machine/machineCkM/" + id,
    method: "delete",
  });
}

// 查询出库单号
export function getCkDocumentNo() {
  return request({
    url: "/machine/machineCkM/getCkDocumentNo",
    method: "get",
  });
}

// 审核出库
export function auditMachineCkM(data) {
  return request({
    url: "/machine/machineCkM/audit",
    method: "put",
    data: data,
  });
}
